<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1 , user-scalable=no">
    <script>
        var _hmt = _hmt || [];
        (function() {
              var hm = document.createElement("script");
              hm.src = "https://hm.baidu.com/hm.js?3cdc170c6aabb772e3308149406be6fd";
              var s = document.getElementsByTagName("script")[0];
              s.parentNode.insertBefore(hm, s);
        })();
    </script>
    <link rel="icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../css/bootstrap-zscool.css"/>
    <link rel="stylesheet" href="../css/animate.css">

    <title>zscool博客</title>
</head>
<body>
<!--导航-->
<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
        <!--小屏幕导航按钮和logo-->
        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="../index.html" class="navbar-brand">zscool博客</a>
        </div>
        <!--小屏幕导航按钮和logo-->
        <!--导航-->
        <div class="navbar-collapse collapse">
            <form class="navbar-form navbar-left navbar-from-top">
                <div class="form-group">
                    <input type="text" class="form-control input-sm" placeholder="请输入要查询的关键字">
                </div>
                <button type="submit" class="btn btn-default btn-sm" style="color: white; background: #40D2B1;">搜索</button>
            </form>

            <ul class="nav navbar-nav navbar-right">

                <li><a href="index.html">首页</a></li>
                <li><a href="../html/about_me.html">关于</a></li>

                <li class="user_login_in_hidden"><a href="login_sign.html">注册</a></li>
                <li class="user_login_in_hidden"><a href="login.html">登录</a></li>
                <!-- <li style="display :none;"><a href="">张三</a></li>
                <li style="display :none;"><a href="">退出</a></li> -->
                <li class="dropdown user_login_on" style="display: none" >
                    <a href="#" class="dropdown-toggle " data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" ><span class="user_login_on_a"></span><span class="caret"></span></a>
                    <ul class="dropdown-menu" >
                        <li><a href="personal_center.html">个人中心</a></li>
                        <li><a href="#">建设中</a></li>
                        <li><a href="#">建设中</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#" class="login_out">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--导航-->

    </div>
</nav>
<!--导航结束-->



<div class="container" style="margin-top: 80px;">
    <div class="row">


        <div class="col-md-12 ">
            <div class="panel panel-default">
                <div class="panel-heading"  style='text-align: center'>
                    <a onclick="" href="#" data-toggle="modal" data-target=".year_c_add" class="btn btn-default dropdown-toggle us-box-color" style="float: left; margin-top: -7px">增加年份</a>
                    <b>投资统计</b>
                    <div style="float: right; color: red">
                        <span>总本金: <span id="all_money"></span>万</span>
                        <span>总收益: <span id="all_profit"></span>万</span>
                    </div>
                </div>
                <table class="table table-bordered table-striped my_article_table" id="my_article_list" >
                    <tr>
                        <th class="money_table">年份</th>
                        <th class="money_table">年初资金</th>
                        <th class="money_table">年中追加资金</th>
                        <th class="money_table">年中取出资金</th>
                        <th class="money_table">当年追加本金</th>
                        <th class="money_table" style="color: red">当年本金</th>
                        <th class="money_table" style="color: red">投资总资金</th>
                        <th class="money_table" style="color: red">当年盈利</th>
                        <th class="money_table">操作</th>
                    </tr>


                    <input type="hidden" value="">
                </table>
            </div>

        </div>

        <div class="col-md-12 " style="z-index:-100;position: relative;">
            <div class="panel panel-default">
                <div class="panel-heading"  style='text-align: center'>数据说明</div>
                <p><b>说明:</b> 1, 一行为一年的记账周期,操作那里可以增加资金,取出资金,添加年末资金和删除------2, 增加资金,取出资金,添加年末资金可以添加负数,例如:"-5",进行反向减钱操作---------3, 当年年初资金等于上一年度总资金(添加的第一个年度请填初始投资金额)<p><b style="color: red">本系统里单位都为:万元,保留4位小数点.</b></p></p>
                <p><b>增加年份:</b> 添加新的一年的记录.</p>
                <p><b>年份:</b> 一个投资年度.</p>
                <p><b>年初资金:</b> 等于上一年度的总资金.</p>
                <p><b>年中追加资金:</b> 操作里的添加资金会累加在这里.</p>
                <p><b>年中取出资金:</b> 操作里的取出资金会累加在这里.</p>
                <p><b>当年追加本金:</b> 会自动根据添加的资金和取出的资金计算.</p>
                <p><b>当年本金:</b> 会自动根据添加的资金和取出的资金计算.</p>
                <p><b>年末资金:</b> 需要自己在年末的时候(或者是当天)添加总资金,会自动计算出盈利</p>
                <p><b>当年盈利:</b> 会自动根据添加的总资金计算</p>
                <span>下图为样例:</span>
                <img src="../images/money_lizi.jpg" class="img-responsive" alt="Responsive image">
            </div>
        </div>
    </div><!--row-->

    <!--<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".yes_a">大模态框</button>-->
    <!--增加资金弹出框-->
    <div class="modal fade add_money " tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">增加资金(万元)</h4>
          </div>
          <div class="modal-body">
            <!--<form>-->
              <div class="form-group">
                  <input type="number" class="form-control" id="add_money_value">
                  <input type="hidden" class="year_m_money_id" value="">

              </div>
            <!--</form>-->
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary" id="add_money_but">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!--取出资金弹出框-->
    <div class="modal fade out_money" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="">取出资金(万元)</h4>
          </div>
          <div class="modal-body">
            <!--<form>-->
              <div class="form-group">
                  <input type="number" class="form-control" id="out_money_value">
                  <input type="hidden" class="year_m_money_id" value="">
              </div>
            <!--</form>-->
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary" id="out_money_but">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!--年末资金弹出框-->
    <div class="modal fade year_m_money"  tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">年末资金(万元)</h4>
          </div>
          <div class="modal-body">
            <!--<form>-->
              <div class="form-group">
                  <input type="number" class="form-control" id="year_m_value">
                  <input type="hidden" class="year_m_money_id" value="">

              </div>
            <!--</form>-->
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary" id="year_m_but">提交</button>
          </div>
        </div>
      </div>
    </div>

    <!--添加年份/初始资金弹出框-->
    <div class="modal fade year_c_add" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">添加新的年份</h4>
          </div>
          <div class="modal-body">
            <!--<form>-->
              <div class="form-group">
                  <label class="control-label">年份:</label>
                  <input type="text" class="form-control" id="year_c_add">
                  <label class="control-label">年初资金(上一年度总资金)(万元):</label>
                  <input type="number" class="form-control" id="year_c_money">

              </div>
            <!--</form>-->
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary" id="year_c_money_but">提交</button>
          </div>
        </div>
      </div>
    </div>



</div><!-- /.container -->




<!-- 回到顶部 -->
<button class="back_to_top"><span class="glyphicon glyphicon-chevron-up" style="font-size: 25px;"></span></button>

<!-- 背景 -->
<div class="login_bg"></div>



<!-- 页脚 版权声明 -->
<footer class="blog-footer">
    <p>个人版权所有,转载请注明出处！</p>
    <p> 工信部备案号： <a href="http://www.miitbeian.gov.cn/">京ICP备18058810号</a></p>
    <p> 联系方式：qq:617116070    邮箱：617116070@qq.com </p>
<p>
    <a href="#">回到顶部</a>
</p>
</footer>

<script src="../js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="../js/jquery.cookie.js"></script>

<script src="../js/bootstrap.min.js"></script>
<script src="../js/zscool.js"></script>
<script src="../js/user_center_permission.js"></script>
<script src="../js/money.js"></script>


<script src="../js/host.js"></script>
<script src="../js/wow.min.js"></script>
<script>
    $(function () {
        new WOW().init();
    })
</script>

</body>
</html>